package com.itheima.zhuanhuan;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

/*
字节->字符
 */
public class Demo02 {

    public static void main(String[] args) throws IOException {
        //字节 -> 字符    读
        InputStreamReader isr = new InputStreamReader(new FileInputStream("day13\\aaa\\b.txt"),"GBK");
        int b;
        while ((b=isr.read())!=-1){
            System.out.println((char)b);
        }
        isr.close();


    }

}
